PICTools Programmer's Reference
PIC2List IOCA Packet Functions

The P2PktIoca structure is defined as:

 
Copy Code
typedef struct {
   BYTE     Type;
   DWORD    Length;
   WORD     SDFID;
   WORD     SDFLen;
   BYTE     SDFData[1];
} P2PktIoca;

P2LAddIoca

 
Copy Code

P2PktIoca* P2LAddIoca(P2LIST* p2l, DWORD ID, DWORD Len, BYTE* data)

Add a Ioca PIC2List packet with SFID ID. If data == 0, then the packet is allocated and the data is set to 0. Returns 0 if a memory allocation error occurs.

P2LFindIoca

 
Copy Code

P2PktIoca* P2LFindIoca (P2LIST* p2l, DWORD ID)

P2LFindIoca returns a pointer to the first Ioca packet of type ID in the PIC2List. 

P2LFindNextIoca

 
Copy Code

P2PktIoca* P2LFindNextIoca (P2LIST* p2l, P2PktIoca* pkt)

P2LFindIoca returns a pointer to the next Ioca packet of type ID and following pkt.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback